This sets the font for the gadget. The GID must point to an ALREADY defined text attribute.
close (c)
This gadget will close the window when selected by the user.
readonly (ro)
This gadget is read only.
disable=number (dis=)
The gadget is disabled if number = 0 , enabled if number !=0. Defaults to enabled.
selected=number (s=)
The gadget is selected if number != 0 , unselected if number = 0. Defaults to unselected.
autobutton=number (ab)
This button uses a scaled glyph image. The number selects the glyph.
0 POPFILE
1 POPDRAWER
2 POPFONT
3 CHECKBOX
4 CANCELBOX
5 UPARROW
6 DNARROW
7 RTARROW
8 LFARROW
9 POPTIME
10 POPSCREEN
11 POPUP
pushbutton (pb)
This button is a pushbutton.
gadgettext="text" (gt=)
Set the text of the gadget.
bevel=TYPE (b=)
Set the bevel type for this gadget.
0=NONE
1=THIN
2=BUTTON
3=GROUP
4=FIELD
5=DROPBOX
6=SBAR_HORIZ
7=SBAR_VERT
8=BOX
9=STANDARD
leftjustify (lj)
rightjustify (rj)
Set the justification of the text for the gadget. Defaults to centerjustify.
minwidth=number (minw=)
Set the minimum width for this gadget
minheight=number (minh=)
Set the minimum height for this gadget
weightedwidth=number (weiw=)
Set the weighted width for this gadget
weightedheight=number (weih=)
Set the weighted height for this gadget
nominalsize (noms)
Set this gadget to its nominal size.
useimage (ui)
Use the last defined image (bitmap/drawlist/penmap) as the gadgets image.
Anim="x|y|wide|high|offsetx|offsety|count"
Use portions of a bitmap for this gadgets image(s).
x,y the left and top pixel of the first image.
wide,high the size of the images.
offsetx,offsety the offset to the next image.
count must be 0 for a standard two image button
(normal and selected image)
The first image is the gadget graphic, the offset is to the
selected image. offsets can be 0 to use a single image.
If count!=0 an array of images is produced to allow animation of the button.
If count >0 an array of count images is built. The button image is set to
the first image in the array.
If count <0 an array of absolutevalue(count)*2 images is built. The button image is set to the first image in the array. The selected image is set to image absolutevalue(count)+1.
See the 'animimage' modify parameter for details about animating the button.
FileName='path:file'
A image file to use as the source bitmap for the anim data. If no file name is given an anim is given the bitmap from the previous anim will be reused. This bitmap in held in a buffer shared by bitmap images. See the image docs-bitmap for more info.
trans
The animation background should be transparent if the image type allows it.
tags="tags|data[|tag|data...]|0
A list of tag and value pairs in HEX. Do not forget the trailing null !
childlabel (chl)
childlabelr (chlr)
Use the previously defined image as a childlabel for this gadget. Display the childlabel to the right or left of the gadget.
replace=GID
Use this gadget to replace an existing gadget specified by GID.
Definition Reply
-----------------
When the gadget creation is successful the pipe replies with
'ok GID'
Button gadget modify parameters.
-------------------------
readonly=number (ro=)
The gadget is readonly if number = 1 , functional if number= 0. Note that this is different handling then in gadget definitions.
disable=number (dis=)
The gadget is disabled if number = 0 , enabled if number != 0.
selected=number (s=)
The gadget is selected if number != 0 , unselected if number = 0.
gadgettext="text" (gt=)
Set the text of the gadget.
newimage=number (ni=)
Replace the gadget image with a previously defined image. If number =0 replace normal image, else replace selected image.
animimage=number (ai=)
When used with the 'newimage' keyword the button image is replaced with an image from the buttons image array. The image to be used is specified by number.
get=TAG
Read the value of a specific gadget attribute. Returns a blank line if attribute is not readable. This should not be combined with any other modify command on the same line.